<?php


namespace App\Models\Admin;


use App\Models\Model;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;

class AdminNotification extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    protected $fillable = [
        "admin_id","level","title","content","read_at",'state'
    ];

    public function admin()
    {
        return $this->belongsTo(Admin::class,'id','admin_id');
    }
}
